package ren.colorful.jdk8;

import javax.sound.midi.Soundbank;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Test3 {
    public static void main(String[] args) {
//        TheInterface i1 = () ->{};
//        System.out.println(i1.getClass().getInterfaces()[0]);
//        TheInterface2 i2 = ()->{};
//        System.out.println(i2.getClass().getInterfaces()[0]);

//        new Thread(()->{
//            System.out.println("hello world");
//        }).start();

        List<String> list = Arrays.asList("hello","world","hello");

//        List<String> list2 = new ArrayList<>();
//        list.forEach(e -> list2.add(e.toUpperCase()));
//        list2.forEach(System.out::println);
        list.stream().map(String::toUpperCase).forEach(System.out::println);
        list.forEach(System.out::println);

    }
}




interface TheInterface{
    void myMethod();
}

interface TheInterface2{
    void myMethod2();
}
